package com.example.javatwo.pojo.xs.lyh;

import java.util.List;

public class pageBean {
	private int count;
	private int pageCount;
	private int pageSize;
	private int prevPage;
	private int currPage;
	private int nextPage;
	private List<?> data;
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPrevPage() {
		return prevPage;
	}
	public void setPrevPage(int prevPage) {
		this.prevPage = prevPage;
	}
	public int getCurrPage() {
		return currPage;
	}
	public void setCurrPage(int currPage) {
		this.currPage = currPage;
	}
	public int getNextPage() {
		return nextPage;
	}
	public void setNextPage(int nextPage) {
		this.nextPage = nextPage;
	}
	public List<?> getData() {
		return data;
	}
	public void setData(List<?> data) {
		this.data = data;
	}
	public pageBean(int count, int pageSize, int currPage, List<?> data) {
		super();
		this.count = count;
		this.pageSize = pageSize;
		this.currPage = currPage;
		this.data = data;
		this.pageCount=count%pageSize>0?count/pageSize+1:count/pageSize;
		this.prevPage=currPage==1?currPage:currPage-1;
		this.nextPage=currPage==pageCount?currPage:currPage+1;
	}
}

